# SPDX-FileCopyrightText: Copyright 2022-2024 深圳市同心圆网络有限公司
# SPDX-License-Identifier: GPL-3.0-only

tags:
  - collection
summary: 通过查询列出document
description: 通过查询列出document
operationId: "{{ uniqueOpId() }}"
requestBody:
  content:
    application/json:
      schema:
        type: object
        properties:
          token:
            type: string
            description: 访问令牌
          id: 
            type: string
            description: mongo连接ID
          database:
            type: string
            description: 数据库名称
          collection:
            type: string
            description: 数据表名称
          query:
            type: string
            description: 查询条件(json字符串)
          offset:
            type: integer
            description: 偏移
          limit:
            type: integer
            description: 单页条数
responses:
  "200":
    description: 成功
    content:
      application/json:
        schema:
          type: object
          properties:
            count:
              type: integer
              description: 记录总条数
            docs:
              type: array
              items:
                type: string
  "500":
    description:  失败
    content:
      application/json:
        schema:
          $ref: "@schemas/errInfo.yml.njk"          